<h1>
        <span class="action-span1">
                <a href="javascript:void(0);">系统设置</a>---
                <a href="javascript:void(0);">房间列表</a>
	</span>
    
        <span class="action-span"><a href="/index.php?c=system&a=roomAdd">添加房间</a></span>
	<div style="clear:both"></div>
</h1>
<?php if( 0 == $uid):?>
<div class="form-div">
    <form action="./index.php" method="get">
  	<input type="hidden" name="c" value="mail">
  	<input type="hidden" name="a" value="mailList">
    <img src="./public/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />    
     房间ID <input type="text" name="roomID" size="15" value="<?=$roomID?>" />
  <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>
<?php endif; ?>
<!-- 邮件列表 -->

  <!-- start user list -->
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>房间ID</th>
    <th>房间名称</th>
    <th>房间等级</th>
    <th>增加经验</th>
    <th>小盲注</th>
    <th>大盲注</th>
    <th>最小<?=$money['pkGameMoney']?></th>
    <th>最多<?=$money['pkGameMoney']?></th>
    <th>单桌最多人数</th>
    <!--<th>房间最大单桌数</th>-->
    <th>房间最大人数</th>
    <th>游戏速度</th>
    <th>进入房间条件</th>
    <th>创建时间</th>
    <th>状态</th>
    <th>操作</th>
  </tr>
  <?php if($roomList):foreach ($roomList as $k=>$v ):?>
  <tr class="" style="text-align:center">
    <td><?=$v['id']?></td>
    <td><?=$v['title']?></td>
    <td><?=$grade[$v['roomGrade']]?></td>
    <td><?=$v['addExp']?></td>
    <td><?=$v['lBlind']?$v['lBlind']:'不限'?></td>
    <td><?=$v['bBlind']?$v['bBlind']:'不限'?></td>
    <td><?=$v['lGameMoney']?$v['lGameMoney']:'不限'?></td>
    <td><?=$v['BGameMoney']?$v['BGameMoney']:'不限'?></td>
    <td><?=$v['DeskMaxHuman']?$v['DeskMaxHuman']:'不限'?></td>
    <!--<td><?=$v['roomMaxDesk']?$v['roomMaxDesk']:'不限'?></td>-->
    <td><?=$v['roomMaxNO']?$v['roomMaxNO']:'不限'?></td>
    <td><?=$speed[$v['gameSpeed']]?></td>
    <td><?php  $roomdata = unserialize( $v['condition']); if( 0< count($roomdata)){
        if(isset($roomdata['grade'])): echo "用户等级:".$roomdata['grade']."<br>"; endif; 
        if(isset($roomdata['money'])): echo "用户钱币:".$roomdata['money']."<br>"; endif; 
        if(isset($roomdata['jetton'])): echo "用户筹码:".$roomdata['jetton']."<br>"; endif; 
        if(isset($roomdata['victory'])): echo "胜利场数:".$roomdata['victory']."<br>"; endif; 
        if(isset($roomdata['maxPayNO'])): echo "充值数值:".$roomdata['maxPayNO']."<br>"; endif; 
    }else{ echo "不限"; }?></td>
    <td><?=date("Y-m-d H:i:s",$v['ctime']);?></td>
    <td><?php if( 1 == $v['isDel']): echo "禁用"; else: echo "启用"; endif; ?></td>
    <td><a href="/index.php?c=system&a=roomEdit&roomID=<?=$v['id'];?>">修改</a>|
        <?php if( 1 == $v['isDel']): ?>
        <a href="/index.php?c=system&a=roomState&roomID=<?=$v['id'];?>&state=0">启用</a>
        <?php else: ?> 
        <a href="/index.php?c=system&a=roomState&roomID=<?=$v['id'];?>&state=1">禁用</a>
        <?php endif; ?></td>
  </tr>
  <?php endforeach;endif;?>
  </table>
<!-- end goods list -->

<!-- 分页 -->
<?php if($page){?>
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true"><?=$page?></td>
  </tr>
</table>
<?php }?>
</div>